<?php $view->extend('::base.html.php') ?>
<?php //var_dump($heroes);ng-controller="" ?>
<?php 
foreach ($heroes as $hero):
?>
<div>
	<img herotooltip="<?php echo $hero->getId(); ?>" src="<?php echo $view['assets']->getUrl($hero->getIconSrc()); ?>">
	<h3>
		<a href="<?php echo $view['router']->generate('heroes_edit', array('heroId' => $hero->getId())); ?>"><?php echo $hero->getName(); ?></a>
		<a href="<?php echo $view['router']->generate('heroes_delete', array('heroId' => $hero->getId())); ?>">&times;</a>
	</h3>
	<?php
		if ($talents = $hero->getTalents()):
			foreach ($talents as $talent):
				//var_dump($talent);
	?>
		<img talenttooltip="<?php echo $talent->getId(); ?>" src="<?php echo $view['assets']->getUrl($talent->getIconSrc()); ?>"/>
	<?php
			endforeach;
		endif;
	?>
</div>
<?php 
endforeach; 
?>

